package com.light.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.light.common.utils.PageUtils;
import com.light.gulimall.product.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author minmin
 * @email 980680541@gmail.com
 * @date 2024-07-15 21:42:34
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 保存品牌与分类关联关系
     * @param categoryBrandRelation {"brandId":1,"catelogId":2}
     */
    void saveCategoryBrandRelation(CategoryBrandRelationEntity categoryBrandRelation);

    /**
     * 获取分类关联的品牌
     * @param catId 分类ID
     * @return  查询结果集
     */
    List<CategoryBrandRelationEntity> getBrandsList(Long catId);
}

